package com.yyfax.pay.order.data.service;

import com.yyfax.pay.depository.domain.EnterpriseAuth;
import com.yyfax.pay.vo.depository.ArtificialRegisterReq;

/**
 * 企业认证信息服务接口
 *
 * @author yejc
 * @date 2017-10-19
 * @since v1.0.0
 */
public interface EnterpriseAuthService {

	/**
	 * 保存企业鉴权信息
	 *
	 * @param merchantCode
	 * @param enterpriseUserId
	 * @param enterpriseName
	 * @param paymentCode
	 * @param bankCode
	 * @param cardNo
	 * @return
	 * @author yejc
	 * @date 2017-10-19
	 * @since v2.0.0
	 */
	int save(String merchantCode, String enterpriseUserId, String enterpriseName, String paymentCode, String bankCode, String cardNo, String phone) throws Exception;

	/**
	 * 根据商户企业用户id和商户号查询企业认证信息
	 *
	 * @param merchantUserId
	 * @param merchantCode
	 * @return
	 * @author yejc
	 * @date 2017-10-19
	 * @since v2.0.0
	 */
	EnterpriseAuth queryByUserIdAndMerchantCode(String merchantUserId, String merchantCode);

	/**
	 * 验证法人是否开过户
	 *
	 * @param merchantCode 商户号
	 * @param req          法人开户请求
	 * @return boolean
	 * @author liangqm
	 * @date 2017-10-19
	 * @since v2.0.0
	 */
	Boolean checkEnterpriseOpenSuccess(String merchantCode, ArtificialRegisterReq req);
}
